cmake_minimum_required (VERSION 3.20)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

set(CMAKE_TOOLCHAIN_FILE "D:/develop/vcpkg/scripts/buildsystems/vcpkg.cmake")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(PROJECT_NAME hello)

project (${PROJECT_NAME})

set(CMAKE_AUTOMOC ON)
# set(CMAKE_AUTOUIC ON)
# set(CMAKE_AUTORCC ON)

find_package(Qt5 COMPONENTS Core Gui Widgets)


# 将源代码添加到此项目的可执行文件。
add_executable (${PROJECT_NAME}  
	"src/main.cpp"
	"src/mainwindow.cpp"
	"src/mainwindow.h"
    )

target_link_libraries(${PROJECT_NAME} 
	Qt5::Core 
	Qt5::Gui 
	Qt5::Widgets
)

# 包含子项目。
# add_subdirectory("event_test")

